package com.world.rickcloudendpoint.demo;

import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * @description: 消息队列主键
 * @author: jlsong
 * @date: 2022/03/17 21:24:38
 * @version: 1.0
 */
public class QueueConstantKey {

    public static final ObjectMapper om = new ObjectMapper();

    /**
     * 队列或存储redis的key的前缀
     */
    public static final String CACHE_PREFIX = "rick:cloud";

    /**
     * 接受消息队列
     */
    public static final String RECEIVE_ONE = "receive:one";
    public static final String RECEIVE_TWO = "receive:two";
    public static final String RECEIVE_THREE = "receive:three";
    public static final String RECEIVE_FOUR = "receive:four";
    public static final String RECEIVE_FIVE = "receive:five";
    public static final String RECEIVE_SIX = "receive:six";
    public static final String RECEIVE_SEVEN = "receive:seven";
    public static final String RECEIVE_EIGHT = "receive:eight";


    /**
     * 业务逻辑队列
     */
    public static final String BUSINESS_ONE = "business:one";
    public static final String BUSINESS_TWO = "business:two";
    public static final String BUSINESS_THREE = "business:three";
    public static final String BUSINESS_FOUR = "business:four";
    public static final String BUSINESS_FIVE = "business:five";
    public static final String BUSINESS_SIX = "business:six";
    public static final String BUSINESS_SEVEN = "business:seven";
    public static final String BUSINESS_EIGHT = "business:eight";

    /**
     * 持久化队列
     */
    public static final String PERSISTED_ONE = "persisted:one";
    public static final String PERSISTED_TWO = "persisted:two";
    public static final String PERSISTED_THREE = "persisted:three";
    public static final String PERSISTED_FOUR = "persisted:four";
    public static final String PERSISTED_FIVE = "persisted:five";
    public static final String PERSISTED_SIX = "persisted:six";
    public static final String PERSISTED_SEVEN = "persisted:seven";
    public static final String PERSISTED_EIGHT = "persisted:eight";

    /*********
     *  业务逻辑处理，并存入redis中
     */
    public static final String REAL_TIME_ONE = "real:time:one";
    public static final String REAL_TIME_TWO = "real:time:two";
    public static final String REAL_TIME_THREE = "real:time:three";
    public static final String REAL_TIME_FOUR = "real:time:four";
    public static final String REAL_TIME_FIVE = "real:time:five";
    public static final String REAL_TIME_SIX = "real:time:six";
    public static final String REAL_TIME_SEVEN = "real:time:seven";
    public static final String REAL_TIME_EIGHT = "real:time:eight";


    /**
     * redis 缓存存储时间 ，单位：秒
     */
    public static final long EXPIRE_TIME = 10 * 60;


}
